<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| This file is where you may define all of the routes that are handled
| by your application. Just tell Laravel the URIs it should respond
| to using a Closure or controller method. Build something great!
|
*/
Route::any('/login', function () {
    return redirect('/admin');
});
Route::any('/index', function () {
    return redirect('/admin');
});

/* 未登录可访问页面 */
Route::any('signin', 'LoginController@login');                                                                          //登录
Route::any('qyWexin', 'LoginController@qyWexin');                                                                          //企业微信登录
Route::any('signout', 'LoginController@logout');                                                                        //登出



Route::get('updateAfterSale', 'CommonController@updateAfterSale');
Route::post('getYzm', 'CommonController@getYzm');   //比较验证码
Route::post('ajax/upload', 'FilesController@UploadPicture'); //上传图片
Route::post('ajax/uploadfiles', 'FilesController@uploadFiles'); //上传文件
Route::get('ajax/downloadFiles', 'FilesController@downloadFiles'); //下载文件
//跳转到member用户
Route::get('member/adminweblogin/{id}', 'MembersController@adminweblogin');
//企业微信跳转
Route::get('crm.netbcloud.com', 'QyWechatController@qywechat_login');
//个人微信跳转
//Route::get('crm.netbcloud.com', 'QyWechatController@wechat_login');



/* 菜单列表 */
Route::any('config/menu', ['f_auth' => 'admin.index.index', 'uses' => 'ConfigsController@UserMenu']);                   //获取菜单权限列表

Route::any('upload/avatar', ['f_auth' => 'admin.index.index', 'uses' => 'FilesController@UploadAvatar']);               //上传头像
Route::any('upload/picture', ['f_auth' => 'admin.index.index', 'uses' => 'FilesController@UploadPicture']);             //上传图片

Route::any('UEditor/config', ['f_auth' => 'admin.index.index', 'uses' => 'FilesController@getUEditorConfig']);          //获取UEditor配置项
Route::any('UEditor/upload',['f_auth' => 'admin.index.index', 'uses' => 'FilesController@uploadPicByUEditor']);         //UEditor上传图片


/* 用户基础信息 */
Route::any('basic', ['f_auth' => 'admin.index.index', 'uses' => 'UserController@basic']);                               //获取用户基础信息

/* 控制面板 */
Route::any('index/index', 'IndexController@index');                                                                     //首页
Route::any('index/contact-list', ['f_auth' => 'admin.index.index', 'uses' => 'IndexController@contactList']);           //获取首页待沟通客户列表
Route::any('index/user-branch', ['f_auth' => 'admin.index.index', 'uses' => 'IndexController@userBranchData']);         //获取团队成员

/* 统计相关 */
Route::any('statistic/work-list', ['f_auth' => 'admin.index.index', 'uses' => 'StatisticController@attendanceList']);   //签到列表
Route::any('statistic/business/{id}', ['f_auth' => 'admin.index.index', 'uses' => 'StatisticController@getBusinessInfo']);//营业统计
Route::any('statistic/rank-list', ['f_auth' => 'admin.index.index', 'uses' => 'StatisticController@rankList']);         //业绩排行榜

/* 权限管理 */
Route::any('permission/index', 'PermissionController@index');                                                           //权限
Route::any('permission/list', ['f_auth' => 'admin.permission.index', 'uses' => 'PermissionController@dataList']);       //权限列表
Route::any('permission/create', 'PermissionController@create');                                                         //权限添加
Route::any('permission/edit/{id}', 'PermissionController@edit');                                                        //权限编辑
Route::any('permission/delete/{id}', 'PermissionController@delete');                                                    //权限删除

/* 角色管理 */
Route::any('role/index', 'RoleController@index');                                                                       //角色
Route::any('role/list', ['f_auth' => 'admin.role.index', 'uses' => 'RoleController@dataList']);                         //角色列表
Route::any('role/all-list', ['f_auth' => 'admin.role.index', 'uses' => 'RoleController@roleList']);                     //角色列表
Route::any('role/auth-list', ['f_auth' => 'admin.role.index', 'uses' => 'RoleController@rolePermission']);              //角色权限列表
Route::any('role/create', 'RoleController@create');                                                                     //角色添加
Route::any('role/edit/{id}', 'RoleController@edit');                                                                    //角色编辑
Route::any('role/delete/{id}', 'RoleController@delete');                                                                //角色删除

/* 用户管理 */
Route::any('user/index', 'UserController@index');                                                                       //用户
Route::any('user/list', ['f_auth' => 'admin.user.index', 'uses' => 'UserController@dataList']);                         //用户列表
Route::any('user/all-list', ['f_auth' => 'admin.index.index', 'uses' => 'UserController@adminList']);                   //用户列表
Route::any('user/detail/{id}', ['f_auth' => 'admin.user.index', 'uses' => 'UserController@detail']);                    //用户详情
Route::any('user/create', 'UserController@create');                                                                     //用户添加
Route::any('user/edit/{id}', 'UserController@edit');                                                                    //用户编辑
Route::any('user/ajax/{id}', ['f_auth' => 'admin.user.edit', 'uses' => 'UserController@ajax']);                         //用户操作
Route::any('user/editBasic/{id}', ['f_auth' => 'admin.index.index', 'uses' => 'UserController@editBasic']);              //用户操作基本信息
Route::any('user/delete/{id}', 'UserController@delete');                                                                //用户删除
Route::any('user/exchange', 'UserController@exchangeOrder');                                                            //用户客户和订单转移(未完)

/* 团队管理 */
Route::any('branch/index', 'BranchController@index');                                                                   //团队
Route::any('branch/list', ['f_auth' => 'admin.branch.index', 'uses' => 'BranchController@dataList']);                   //团队列表
Route::any('branch/all-list', ['f_auth' => 'admin.index.index', 'uses' => 'BranchController@branchList']);              //团队列表
Route::any('branch/create', 'BranchController@create');                                                                 //团队添加
Route::any('branch/edit/{id}', 'BranchController@edit');                                                                //团队编辑
Route::any('branch/delete/{id}', 'BranchController@delete');                                                            //团队删除

/* 公司管理 */
Route::any('company/index', 'CompanyController@index');                                                                 //公司
Route::any('company/list', ['f_auth' => 'admin.company.index', 'uses' => 'CompanyController@dataList']);                //公司列表
Route::any('company/all-list', ['f_auth' => 'admin.index.index', 'uses' => 'CompanyController@companyList']);           //公司列表
Route::any('company/create', 'CompanyController@create');                                                               //公司添加
Route::any('company/edit/{id}', 'CompanyController@edit');                                                              //公司编辑
Route::any('company/delete/{id}', 'CompanyController@delete');                                                          //公司删除

/* 商品管理 */
Route::any('goods/index', 'GoodsController@index');                                                                     //商品
Route::any('goods/list', ['f_auth' => 'admin.goods.index', 'uses' => 'GoodsController@dataList']);                      //商品列表
Route::any('goods/all-list', ['f_auth' => 'admin.index.index', 'uses' => 'GoodsController@goodsList']);                 //商品全部列表
Route::any('goods/detail/{id}', ['f_auth' => 'admin.goods.index', 'uses' => 'GoodsController@detail']);                 //商品详情
Route::any('goods/create', 'GoodsController@create');                                                                   //商品添加
Route::any('goods/edit/{id}', 'GoodsController@edit');                                                                  //商品编辑
Route::any('goods/ajax/{id}', ['f_auth' => 'admin.goods.edit', 'uses' => 'GoodsController@ajax']);                      //商品操作
Route::any('goods/delete/{id}', 'GoodsController@delete');                                                              //商品删除

/* 案例管理 */
Route::any('case/index', 'CaseController@index');                                                                       //案例
Route::any('case/list', ['f_auth' => 'admin.case.index', 'uses' => 'CaseController@dataList']);                         //案例列表
Route::any('case/type-list', ['f_auth' => 'admin.case.index', 'uses' => 'CaseController@typeList']);                    //案例类型列表
Route::any('case/create', 'CaseController@create');                                                                     //案例添加
Route::any('case/edit/{id}', 'CaseController@edit');                                                                    //案例编辑
Route::any('case/delete/{id}', 'CaseController@delete');                                                                //案例删除

/* 客户管理 */
Route::any('member/index', 'MemberController@index');                                                                   //客户
Route::any('member/list', ['f_auth' => 'admin.member.index', 'uses' => 'MemberController@dataList']);                   //客户列表
Route::any('member/detail/{id}', ['f_auth' => 'admin.member.index', 'uses' => 'MemberController@detail']);              //客户详情
Route::any('member/create', 'MemberController@create');                                                                 //客户添加
Route::any('member/edit/{id}', 'MemberController@edit');                                                                //客户编辑
Route::any('member/ajax/{id}', ['f_auth' => 'admin.member.edit', 'uses' => 'MemberController@ajax']);                   //客户操作
Route::any('member/delete/{id}', 'MemberController@delete');                                                            //客户删除
Route::any('member/source-list', ['f_auth' => 'admin.member.index', 'uses' => 'MemberController@memberSource']);        //客户等级列表
Route::any('member/level-list', ['f_auth' => 'admin.member.index', 'uses' => 'MemberController@memberLevel']);          //客户来源列表
Route::any('member/moneyEdit/{id}', ['f_auth' => 'admin.member.index', 'uses' => 'MemberController@moneyEdit']);        //客户金额更新

/* 未激活客户管理 */
Route::any('customer/index', 'CustomerController@index');                                                               //客户
Route::any('customer/list', ['f_auth' => 'admin.customer.index', 'uses' => 'CustomerController@dataList']);             //客户列表
Route::any('customer/detail/{id}', ['f_auth' => 'admin.customer.index', 'uses' => 'CustomerController@detail']);        //客户详情
Route::any('customer/create', ['f_auth' => 'admin.customer.index', 'uses' => 'CustomerController@create']);             //客户添加
Route::any('customer/edit/{id}', ['f_auth' => 'admin.customer.index', 'uses' => 'CustomerController@edit']);            //客户编辑
Route::any('customer/ajax/{id}', ['f_auth' => 'admin.customer.edit', 'uses' => 'CustomerController@ajax']);             //客户操作
Route::any('customer/export', ['f_auth' => 'admin.customer.index', 'uses' => 'CustomerController@export']);             //客户导出
Route::any('customer/delete/{id}', ['f_auth' => 'admin.customer.index', 'uses' => 'CustomerController@delete']);        //客户删除

/* 订单管理 */
Route::any('order/index', 'OrderController@index');                                                                     //订单
Route::any('order/list', ['f_auth' => 'admin.order.index', 'uses' => 'OrderController@dataList']);                      //订单列表
Route::any('order/ajax/{id}', ['f_auth' => 'admin.order.edit', 'uses' => 'OrderController@ajax']);                      //订单操作

/* 业绩订单管理 */
Route::any('achievement/index', 'AchievementController@index');                                                         //业绩订单
Route::any('achievement/list', ['f_auth' => 'admin.achievement.index', 'uses' => 'AchievementController@dataList']);    //业绩订单列表
Route::any('achievement/detail/{id}',['f_auth' => 'admin.achievement.index', 'uses' => 'AchievementController@detail']);//业绩订单详情
Route::any('achievement/edit/{id}', ['f_auth' => 'admin.achievement.index', 'uses' => 'AchievementController@edit']);   //业绩订单修改
Route::any('achievement/ajax/{id}', ['f_auth' => 'admin.achievement.edit', 'uses' => 'AchievementController@ajax']);    //业绩订单操作
Route::any('achievement/verify/{id}', ['f_auth' => 'admin.achievement.index', 'uses' => 'AchievementController@verifyRecord']);//业绩订单审核
Route::any('achievement/export', ['f_auth' => 'admin.achievement.index', 'uses' => 'AchievementController@export']);    //业绩订单导出
Route::any('achievement/delete/{id}', ['f_auth' => 'admin.achievement.index', 'uses' => 'AchievementController@delete']);//业绩订单删除
Route::any('member/addAchievement/{id}', ['f_auth' => 'admin.member.index', 'uses' => 'AchievementController@achievementAdd']);//业绩录入
Route::any('achievement/getList', ['f_auth' => 'admin.member.index', 'uses' => 'AchievementController@getList']);      //个人业绩列表
Route::any('achievement/exchangeOrder', ['f_auth' => 'admin.member.index', 'uses' => 'AchievementController@exchangeOrder']);//业绩订单转移

/* 售后订单管理 */
Route::any('aftersale/index', 'AftersaleController@index');                                                             //售后订单
Route::any('aftersale/list', ['f_auth' => 'admin.aftersale.index', 'uses' => 'AftersaleController@dataList']);          //售后订单列表
Route::any('aftersale/detail/{id}',['f_auth' => 'admin.aftersale.index', 'uses' => 'AftersaleController@detail']);      //售后订单详情
Route::any('aftersale/create', 'AftersaleController@create');                                                           //售后订单添加
Route::any('aftersale/edit/{id}', 'AftersaleController@edit');                                                          //售后订单修改
Route::any('aftersale/ajax/{id}', ['f_auth' => 'admin.aftersale.edit', 'uses' => 'AftersaleController@ajax']);          //售后订单操作
Route::any('aftersale/exchangeOrder', ['f_auth' => 'admin.aftersale.exchangeorder', 'uses' => 'AftersaleController@exchangeOrder']);//售后订单转移
#Route::any('achievement/verify/{id}', 'AchievementController@verifyRecord');

/* 销售提成规则管理 */
Route::any('salerule/index', 'SaleRuleController@index');                                                               //提成规则
Route::any('salerule/list', ['f_auth' => 'admin.salerule.index', 'uses' => 'SaleRuleController@dataList']);             //提成规则列表
Route::any('salerule/all-list', ['f_auth' => 'admin.index.index', 'uses' => 'SaleRuleController@saleRuleList']);        //提成规则全部列表
Route::any('salerule/detail/{id}',['f_auth' => 'admin.salerule.index', 'uses' => 'SaleRuleController@detail']);         //提成规则详情
Route::any('salerule/create', 'SaleRuleController@create');                                                             //提成规则添加
Route::any('salerule/edit/{id}', 'SaleRuleController@edit');                                                            //提成规则修改
Route::any('salerule/delete/{id}', 'SaleRuleController@delete');                                                        //提成规则删除

/* 文章管理 */
Route::any('article/index', 'ArticleController@index');                                                                 //文章规则
Route::any('article/list', ['f_auth' => 'admin.article.index', 'uses' => 'ArticleController@dataList']);                //文章列表
Route::any('article/detail/{id}',['f_auth' => 'admin.article.index', 'uses' => 'ArticleController@detail']);            //文章详情
Route::any('article/create', 'ArticleController@create');                                                               //文章添加
Route::any('article/edit/{id}', 'ArticleController@edit');                                                              //文章修改
Route::any('article/ajax/{id}', ['f_auth' => 'admin.article.edit', 'uses' => 'ArticleController@ajax']);                //文章操作
Route::any('article/delete/{id}', 'ArticleController@delete');                                                          //文章删除

/* 财务管理 */
Route::any('finance/balance', 'FinanceController@balance');                                                             //余额
Route::any('finance/balance-list', ['f_auth' => 'admin.finance.index', 'uses' => 'FinanceController@balanceRecord']);   //余额明细
Route::any('finance/coupon', 'FinanceController@giftMoney');                                                            //赠送金
Route::any('finance/coupon-list', ['f_auth' => 'admin.finance.index', 'uses' => 'FinanceController@giftMoneyRecord']);  //赠送金明细
Route::any('finance/commossion', 'FinanceController@commissionRecord');                                                 //提成记录
Route::any('finance/withdrawals', 'FinanceController@withdrawalsRecord');                                               //提现记录
Route::any('finance/ajax/{id}', ['f_auth' => 'admin.finance.edit', 'uses' => 'FinanceController@ajax']);                //财务操作


//人事管理
Route::any('hr/getDataList', ['f_auth' => 'admin.hr.index', 'uses' => 'HrController@getDataList']);                     //人事列表
Route::any('hr/getInfo/{id}', ['f_auth' => 'personalInformation', 'uses' => 'HrController@getInfo']);                        //获取人事信息
Route::any('hr/save/{id}', ['f_auth' => 'admin.hr.index', 'uses' => 'HrController@update']);                            //更新人事信息
Route::any('hr/add', ['f_auth' => 'admin.hr.index', 'uses' => 'HrController@insert']);                                  //添加人事信息
Route::any('hr/del/{id}', ['f_auth' => 'admin.hr.index', 'uses' => 'HrController@del']);                                //删除人事信息

//系统设置 - 等级设置
Route::any('memberlevel/list', ['f_auth' => 'admin.memberlevel.index', 'uses' => 'MemberLevelController@getDataList']); //等级列表
Route::any('memberlevel/detail/{id}', ['f_auth' => 'admin.memberlevel.index', 'uses' => 'MemberLevelController@detail']);//等级详细
Route::any('memberlevel/create', ['f_auth' => 'admin.memberlevel.index', 'uses' => 'MemberLevelController@create']);    //添加等级
Route::any('memberlevel/update/{id}', ['f_auth' => 'admin.memberlevel.index', 'uses' => 'MemberLevelController@update']);//更新等级
Route::any('memberlevel/del/{id}', ['f_auth' => 'admin.memberlevel.index', 'uses' => 'MemberLevelController@destroy']); //删除等级

//来源管理
Route::any('membersource/list', ['f_auth' => 'admin.membersource.index', 'uses' => 'MemberSourceController@getDataList']);//来源列表
Route::any('membersource/create', ['f_auth' => 'admin.membersource.index', 'uses' => 'MemberSourceController@create']); //添加来源
Route::any('membersource/detail/{id}', ['f_auth' => 'admin.membersource.index', 'uses' => 'MemberSourceController@detail']);//来源详细
Route::any('membersource/update/{id}', ['f_auth' => 'admin.membersource.index', 'uses' => 'MemberSourceController@update']);//更新来源
Route::any('membersource/del/{id}', ['f_auth' => 'admin.membersource.index', 'uses' => 'MemberSourceController@destroy']);//删除来源

//问题反馈路由
Route::any('problem/getDataList', ['f_auth' => 'admin.problem.index', 'uses' => 'ProblemController@getDataList']);
Route::any('problem/update',['f_auth' => 'admin.problem.update', 'uses' => 'ProblemController@update']);
Route::any('problem/create',['f_auth' => 'admin.problem.create', 'uses' => 'ProblemController@create']);

//工单路由
Route::any('workorder/getDataList', ['f_auth' => 'admin.workorder.index', 'uses' => 'WorkOrderController@getDataList']);
Route::any('workorder/update',['f_auth' => 'admin.workorder.update', 'uses' => 'WorkOrderController@update']);

//CRM版本
Route::any('sysupdate/list', ['f_auth' => 'admin.sysupdate.index', 'uses' => 'SysUpdateController@getDataList']);       //crm版本更新记录

//站点信息
Route::any('configs/index', ['f_auth' => 'admin.configs.index', 'uses' => 'ConfigsController@index']);

//公告
Route::any('notice/list',['f_auth' => 'admin.article.index', 'uses' => 'ArticleController@getListContent']);            //公告

//相关链接
Route::any('lookarticles/list',['f_auth' => 'admin.index.index', 'uses' =>'BrowsingController@getDataList']);               //加载新闻列表
Route::any('lookarticles/view/{id}', ['f_auth' => 'admin.index.index', 'uses' =>'BrowsingController@view']);            //查看新闻详细
Route::any('lookhelp/index',['f_auth' => 'admin.index.index', 'uses' =>'BrowsingController@help']);                         //使用帮助
Route::any('lookabout/index',['f_auth' => 'admin.index.index', 'uses' =>'BrowsingController@about']);                       //关于我们
Route::any('looklog/list',['f_auth' => 'admin.index.index', 'uses' =>'BrowsingController@log']);                            //更新日志

//站点设置
Route::any('siteconfig/update', ['f_auth' => 'admin.siteconfig.index', 'uses' => 'SiteconfigController@update']);       //更新站点信息
Route::any('siteconfig/list', ['f_auth' => 'admin.siteconfig.index', 'uses' => 'SiteconfigController@getDataList']);    //站点设置

Route::any('common/getTitle', ['uses' => 'CommonController@getTitle']);                                                  //获取站点名称

//更新管理员信息
Route::post('updateuser/ajax/{id}', 'UserController@ajax'); 

Route::group(['middleware' => ['auth:admin', 'menu', 'authAdmin']], function () {

    
    //权限管理路由


    //角色管理路由
//    Route::post('role/getDataList', ['as' => 'admin.role.index', 'uses' => 'RoleController@getDataList']);
//    Route::get('role/index', ['as' => 'admin.role.index', 'uses' => 'RoleController@index']);
//    Route::resource('role', 'RoleController', ['names' => ['update' => 'admin.role.edit', 'store' => 'admin.role.create']]);


    //管理员管理路由
//    Route::any('user/getDataList', ['as' => 'admin.user.index', 'uses' => 'UserController@getDataList']);
//    Route::any('user/index', ['as' => 'admin.user.index', 'uses' => 'UserController@index']);  //管理员管理
//    Route::any('user/exchangeOrder', ['as' => 'admin.user.exchangeorder', 'uses' => 'UserController@exchangeOrder']);
//    Route::resource('user', 'UserController', ['names' => ['update' => 'admin.user.edit', 'store' => 'admin.user.create']]);
//	Route::post('/user/ajax/{id}', ['as' => 'admin.user.edit', 'uses' => 'UserController@ajax']);

	//分公司管理路由
//    Route::any('branch/getDataList', ['as' => 'admin.branch.index', 'uses' => 'BranchController@getDataList']);
//	Route::any('branch/index', ['as' => 'admin.branch.index', 'uses' => 'BranchController@index']);
//	Route::resource('branch', 'BranchController', ['names' => ['update' => 'admin.branch.edit', 'store' => 'admin.branch.create']]);

//    //打卡签到
//	Route::any('workstatus/index', ['as' => 'admin.workstatus.index', 'uses' => 'WorkstatusController@index']);

	//商品回收站
    Route::any('recovery/getDataList', ['as' => 'admin.recovery.index', 'uses' => 'RecoveryController@getDataList']);
	Route::any('recovery/index', ['as' => 'admin.recovery.index', 'uses' => 'RecoveryController@index']);
	Route::resource('recovery', 'RecoveryController', ['names' => ['update' => 'admin.recovery.edit', 'store' => 'admin.recovery.create']]);

	//用户管理路由
//	Route::any('member/achievement/{id}', ['as' => 'admin.member.index', 'uses' => 'MembersController@achievement']);
//    Route::any('member/achievementAdd', ['as' => 'admin.member.index', 'uses' => 'MembersController@achievementAdd']);
//    Route::any('member/getDataList', ['as' => 'admin.member.index', 'uses' => 'MembersController@getDataList']);
//    Route::any('member/index', ['as' => 'admin.member.index', 'uses' => 'MembersController@index']);  //用户管理
//    Route::resource('member', 'MembersController', ['names' => ['update' => 'admin.member.edit', 'store' => 'admin.member.create']]);
//    Route::post('/member/ajax/{id}', ['as' => 'admin.member.edit', 'uses' => 'MembersController@ajax']);
//    Route::post('/member/moneyedit/{id}', ['as' => 'admin.member.moneyedit', 'uses' => 'MembersController@moneyedit']);
//    Route::post('/member/goods/{id}', ['as' => 'admin.member.goods', 'uses' => 'MembersController@ajax']);
  
	//用户等级管理路由
//    Route::any('memberlevel/getDataList', ['as' => 'admin.memberlevel.index', 'uses' => 'MemberLevelController@getDataList']);
//    Route::any('memberlevel/index', ['as' => 'admin.memberlevel.index', 'uses' => 'MemberLevelController@index']);  //用户等级管理
//    Route::resource('memberlevel', 'MemberLevelController', ['names' => ['update' => 'admin.memberlevel.edit', 'store' => 'admin.memberlevel.create']]);

//	//用户来源管理路由
//    Route::any('membersource/getDataList', ['as' => 'admin.membersource.index', 'uses' => 'MemberSourceController@getDataList']);
//    Route::any('membersource/index', ['as' => 'admin.membersource.index', 'uses' => 'MemberSourceController@index']);  //用户来源管理
//    Route::resource('membersource', 'MemberSourceController', ['names' => ['update' => 'admin.membersource.edit', 'store' => 'admin.membersource.create']]);
    
    //客户管理路由
//    Route::get('customer/getdownload', ['as' => 'admin.customer.index', 'uses' => 'CustomerController@getdownload']);
//    Route::any('customer/getDataList', ['as' => 'admin.customer.index', 'uses' => 'CustomerController@getDataList']);
//    Route::any('customer/index', ['as' => 'admin.customer.index', 'uses' => 'CustomerController@index']);
//    Route::resource('customer', 'CustomerController', ['names' => ['update' => 'admin.customer.edit', 'store' => 'admin.customer.create']]);
//    Route::post('/customer/ajax/{id}', ['as' => 'admin.customer.edit', 'uses' => 'CustomerController@ajax']);
    
    //问题反馈路由
//    Route::any('problem/getDataList', ['as' => 'admin.problem.index', 'uses' => 'ProblemController@getDataList']);
//    Route::any('problem/index', ['as' => 'admin.problem.index', 'uses' => 'ProblemController@index']);
//	Route::post('problem/updatepro',['as' => 'admin.problem.update', 'uses' => 'ProblemController@updatepro']);
//	Route::post('problem/createpro',['as' => 'admin.problem.create', 'uses' => 'ProblemController@createpro']);
    
	//文章浏览路由
//	Route::get('lookhelp/index',['as' => 'admin.index.index', 'uses' =>'BrowsingController@help']);    //使用帮助
//	Route::get('lookabout/index',['as' => 'admin.index.index', 'uses' =>'BrowsingController@about']);    //关于我们
//	Route::post('log/loadlog/{id}',['as' => 'admin.index.index', 'uses' =>'BrowsingController@loadLog']);   //加载日志
//	Route::get('looklog/index',['as' => 'admin.index.index', 'uses' =>'BrowsingController@log']);   //更新日志
//	Route::get('lookarticles/view/{id}', ['as' => 'admin.index.index', 'uses' =>'BrowsingController@view']);
//    Route::any('lookarticles/getDataList',['as' => 'admin.index.index', 'uses' =>'BrowsingController@getDataList']);
//	Route::any('lookarticles/index',['as' => 'admin.index.index', 'uses' =>'BrowsingController@articles']);

    //控制面板路由
	Route::get('home', ['as' => 'admin.index.home', 'uses' => 'IndexController@home']);
	Route::any('bonus/log', ['as' => 'admin.index.index', 'uses' => 'CommonController@bonus']);  

  
//  	//腾讯可看客户列表
//  	Route::post('/tx_customer/ajax/{id}', ['as' => 'admin.tx_customer.index', 'uses' => 'TxCustomerController@ajax']);
//    Route::any('tx_customer/getDataList', ['as' => 'admin.tx_customer.index', 'uses' => 'TxCustomerController@getDataList']);
//  	Route::any('tx_customer/index', ['as' => 'admin.tx_customer.index', 'uses' => 'TxCustomerController@index']);

    //test
    //Route::any('public_customer/index', ['as' => 'admin.public_customer.exchange', 'uses' => 'PBCustomerController@index']);

  	//站点信息路由
  	Route::post('/configs/ajax/{id}', ['as' => 'admin.configs.index', 'uses' => 'ConfigsController@ajax']);
//  	Route::any('configs/index', ['as' => 'admin.configs.index', 'uses' => 'ConfigsController@index']);
  	
	//销售提成设置
//	Route::post('/salebonusrule/ajax/{id}', ['as' => 'admin.salebonusrule.index', 'uses' => 'SalebonusruleController@ajax']);
//    Route::any('salebonusrule/getDataList', ['as' => 'admin.salebonusrule.index', 'uses' => 'SalebonusruleController@getDataList']);
//  	Route::any('salebonusrule/index', ['as' => 'admin.salebonusrule.index', 'uses' => 'SalebonusruleController@index']);
//    Route::resource('salebonusrule', 'SalebonusruleController', ['names' => ['update' => 'admin.salebonusrule.edit', 'store' => 'admin.salebonusrule.create']]);

	//项目设置
    Route::any('project/getDataList', ['as' => 'admin.project.index', 'uses' => 'ProjectController@getDataList']);
    Route::any('project/index', ['as' => 'admin.project.index', 'uses' => 'ProjectController@index']);
    Route::resource('project', 'ProjectController', ['names' => ['update' => 'admin.project.edit', 'store' => 'admin.project.create']]);

    //公司设置
    Route::any('company/getDataList', ['as' => 'admin.company.index', 'uses' => 'CompanyController@getDataList']);
    Route::any('company/index', ['as' => 'admin.company.index', 'uses' => 'CompanyController@index']);
    Route::resource('company', 'CompanyController', ['names' => ['update' => 'admin.company.edit', 'store' => 'admin.company.create']]);

    //版本更新
//    Route::any('sysupdate/index', ['as' => 'admin.sysupdate.index', 'uses' => 'SysUpdateController@index']);

    //站点设置
//	Route::post('siteconfig/update', ['as' => 'admin.siteconfig.index', 'uses' => 'SiteconfigController@update']);
//	Route::any('siteconfig/index', ['as' => 'admin.siteconfig.index', 'uses' => 'SiteconfigController@index']);  //站点设置
	
	//提现管理
	Route::post('/takemoney/ajax/{id}', ['as' => 'admin.takemoney.index', 'uses' => 'TakeMoneyController@ajax']);
    Route::any('takemoney/getDataList', ['as' => 'admin.takemoney.index', 'uses' => 'TakeMoneyController@getDataList']);
    Route::any('takemoney/index', ['as' => 'admin.takemoney.index', 'uses' => 'TakeMoneyController@index']);  //提现管理
    Route::resource('takemoney', 'TakeMoneyController', ['names' => ['update' => 'admin.takemoney.edit', 'store' => 'admin.takemoney.create']]);
    Route::post('/takemoney/check/{id}', ['as' => 'admin.takemoney.edit', 'uses' => 'TakeMoneyController@check']);
});



